/**
 * 
 */
package kr.co.insoft.core.model.template.application;

import java.io.Serializable;

import kr.co.insoft.auth.model.security.User;
import flexjson.JSONSerializer;

/**
 * TABLE : T_BASE_APPLICATION
 * 
 * @author IN-SOFT Inc. Park Jong Taek(jtpark@in-soft.co.kr)
 * 
 */
public class ApplicationEntityModel  implements Serializable {
	
	private static final long serialVersionUID = -715645747810155810L;
	
	String applicationid;
	String applicationName;
	String applicationTypeName;
	String applicationType;
	String applicationDesc;
	Long userid;
	String companyid;
	String updatedDate;
	/* OPTIONAL */
	String writer;
	String event_cnt;
	String param_cnt;
	/* T_BASE_EVENT*/
	String scriptid;
	String script;

	public String toString() {
		return (new JSONSerializer()).deepSerialize(this);
	}
	
	public void setAuth(User user) {
		this.userid = user.getId();
		this.companyid = user.getCompanyId();
	}
	
	/**
	 * @return the event_cnt
	 */
	public String getEvent_cnt() {
		return event_cnt;
	}

	/**
	 * @param event_cnt the event_cnt to set
	 */
	public void setEvent_cnt(String event_cnt) {
		this.event_cnt = event_cnt;
	}

	/**
	 * @return the param_cnt
	 */
	public String getParam_cnt() {
		return param_cnt;
	}

	/**
	 * @param param_cnt the param_cnt to set
	 */
	public void setParam_cnt(String param_cnt) {
		this.param_cnt = param_cnt;
	}

	/**
	 * @return the script
	 */
	public String getScript() {
		return script;
	}
	/**
	 * @param script the script to set
	 */
	public void setScript(String script) {
		this.script = script;
	}
	/**
	 * @return the scriptid
	 */
	public String getScriptid() {
		return scriptid;
	}
	/**
	 * @param scriptid the scriptid to set
	 */
	public void setScriptid(String scriptid) {
		this.scriptid = scriptid;
	}
	/**
	 * @return the applicationTypeName
	 */
	public String getApplicationTypeName() {
		return applicationTypeName;
	}
	/**
	 * @param applicationTypeName the applicationTypeName to set
	 */
	public void setApplicationTypeName(String applicationTypeName) {
		this.applicationTypeName = applicationTypeName;
	}
	/**
	 * @return the applicationid
	 */
	public String getApplicationid() {
		return applicationid;
	}
	/**
	 * @param applicationid the applicationid to set
	 */
	public void setApplicationid(String applicationid) {
		this.applicationid = applicationid;
	}
	/**
	 * @return the applicationName
	 */
	public String getApplicationName() {
		return applicationName;
	}
	/**
	 * @param applicationName the applicationName to set
	 */
	public void setApplicationName(String applicationName) {
		this.applicationName = applicationName;
	}
	/**
	 * @return the applicationType
	 */
	public String getApplicationType() {
		return applicationType;
	}
	/**
	 * @param applicationType the applicationType to set
	 */
	public void setApplicationType(String applicationType) {
		this.applicationType = applicationType;
	}
	/**
	 * @return the applicationDesc
	 */
	public String getApplicationDesc() {
		return applicationDesc;
	}
	/**
	 * @param applicationDesc the applicationDesc to set
	 */
	public void setApplicationDesc(String applicationDesc) {
		this.applicationDesc = applicationDesc;
	}
	/**
	 * @return the userid
	 */
	public Long getUserid() {
		return userid;
	}
	/**
	 * @param userid the userid to set
	 */
	public void setUserid(Long userid) {
		this.userid = userid;
	}
	/**
	 * @return the companyid
	 */
	public String getCompanyid() {
		return companyid;
	}
	/**
	 * @param companyid the companyid to set
	 */
	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}
	/**
	 * @return the updatedDate
	 */
	public String getUpdatedDate() {
		return updatedDate;
	}
	/**
	 * @param updatedDate the updatedDate to set
	 */
	public void setUpdatedDate(String updatedDate) {
		this.updatedDate = updatedDate;
	}
	/**
	 * @return the writer
	 */
	public String getWriter() {
		return writer;
	}
	/**
	 * @param writer the writer to set
	 */
	public void setWriter(String writer) {
		this.writer = writer;
	}
	
	

}
